import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {SysMenuComponent} from './sys-menu.component';

const routes: Routes = [
    {path: '', component: SysMenuComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-sys-menu/add-sys-menu.module#AddSysMenuModule'},
            {path: 'list', loadChildren: './list-sys-menu/list-sys-menu.module#ListSysMenuModule'},
            {path: 'modify', loadChildren: './modify-sys-menu/modify-sys-menu.module#ModifySysMenuModule'},
            {path: 'report', loadChildren: './report-sys-menu/report-sys-menu.module#ReportSysMenuModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class SysMenuRoutingModule {
}
